<?php

$days = 720;

$years = (int)($days/365);
$tmpdays = $days%365;

$months = (int)($tmpdays/30);
$day = $tmpdays%30;

echo "$days has $years Years ,$months Months and $day days";
